export type OptionType = {
  value: string;
  label: string;
  checked?: boolean;
};

export type QuestionCheckboxPropsType = {
  title?: string;
  isVertical?: boolean;
  options?: OptionType[];
  disabled?: boolean;
  onChange?: (newProps: QuestionCheckboxPropsType) => void;
};
export const QuestionCheckboxDefaultProps: QuestionCheckboxPropsType = {
  title: "多选标题",
  isVertical: false,
  options: [
    { value: "item1", label: "选项1", checked: false },
    { value: "item2", label: "选项2", checked: false },
    { value: "item3", label: "选项3", checked: false },
  ],
};

//统计组件属性类型
export type QuestionCheckboxStatPropsType = {
  stat: Array<{ name: string; count: number }>;
};

